package com.cloudbroker.bcs.common.validatioin.annotation;

import com.cloudbroker.bcs.common.validatioin.constants.ValidationConstants;
import com.cloudbroker.bcs.common.validatioin.constants.ValidationErrorCodes;
import com.cloudbroker.bcs.common.validatioin.validator.IdentityValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * Created by wangxu13798 on 2016/12/30.
 */
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE,
        ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SensitiveWord {
    Class<?>[] groups() default {};

    String message() default "";

    Class<? extends Payload>[] payload() default {};

    String errorCode() default ValidationErrorCodes.PARAM_MALFORMED;
}
